<div id="sitebody">

	<div id="header-wrapper">
		<div id="header">
			<div class="header-in">

				<div class="left">
					<div class="logo">
						<h1>
							<a href="index.php" title="{#desktop#}"><img src="./templates/planeacion_desarrollo/images/actitud_logo_base.png" alt="Actitud" /></a>
							<span class="title">{$settings.name}</span><span class="subtitle">{if $settings.subtitle} {$settings.subtitle} {/if}</span>
						</h1>
					</div>

				</div> {*left End*}

				<div class="right">
					{if $loggedin == 1}
						<ul id="mainmenue">
							<li class="desktop"><a class = "{$mainclasses.desktop}" href="index.php"><span>{#desktop#}</span></a></li>
							
							{if $userpermissions.reports.view}
							<li class="reports">
								<a class="{$mainclasses.reports}" href="managereports.php">
									<span>{#reports#}</span>
								</a>
							</li>
							{/if}
							
							{if $usergender == "f"}
							<li class="profil-female"><a class = "{$mainclasses.profil}" href="manageuser.php?action=profile&amp;id={$userid}"><span>{#myaccount#}</span></a></li>
							{else}
							<li class="profil-male"><a class = "{$mainclasses.profil}" href="manageuser.php?action=profile&amp;id={$userid}"><span>{#myaccount#}</span></a></li>
							{/if}

							 {if $userpermissions.admin.add || $userpermissions.users.view || $userpermissions.companies.view}
							<li class="admin"><a class = "{$mainclasses.admin}" href="admin.php?action=projects"><span>{#administration#}</span><span class="submenarrow"></span></a>
								<div class="submen">
									<ul>
										
										{if $userpermissions.admin.add}
										<li class="project-settings"><a class="{$classes.overview}" href="admin.php?action=projects"><span>{#projectadministration#}</span></a></li>
										{/if}
										
										{if $userpermissions.admin.add || $userpermissions.companies.view}
										<li class="company-settings"><a class="{$classes.companies}" href="admin.php?action=companies"><span>{#companyadministration#}</span></a></li>
										{/if}
										
										{if $userpermissions.admin.add || $userpermissions.users.view}
										<li class="user-settings"><a class="{$classes.users}" href="admin.php?action=users"><span>{#useradministration#}</span></a></li>
										{/if}
										
										{if $userpermissions.admin.add}
										<li class="system-settings"><a class="{$classes.system}" href="admin.php?action=system"><span>{#systemadministration#}</span></a></li>
										{/if}
										
									</ul>
								</div>
							</li>
							{/if}
							
							<li class="logout"><a href="manageuser.php?action=logout"><span>{#logout#}</span></a></li>
						</ul>
					{/if}
				</div> <!-- Right End -->



			</div> <!-- Header-In End -->
		</div> <!-- Header End -->
	</div> <!-- Header-Wrapper End -->


	<div id="contentwrapper">

